<style>
    .layui-menu li{
        line-height: 36px;
    }
    .layui-menu .layui-menu-item-checked:after{
        right: auto;
        left: -1px;
    }
    .layui-menu-body-title{
        display: block;
    }
</style>
<div class="layui-panel" >
    <ul class="layui-menu">
        <li class="layui-menu-item-group">
            <div class="layui-menu-body-title">账号安全</div>
            <ul>
                <li {if condition="$action eq 'index'"} class="layui-menu-item-checked"{/if}>
                    <a href="{:url('user/index')}" class="layui-menu-body-title">个人主页</a>
                </li>
                <li {if condition="$action eq 'info'"} class="layui-menu-item-checked"{/if}>
                    <a href="{:url('user/info')}" class="layui-menu-body-title">修改资料</a>
                </li>
                <li {if condition="$action eq 'password'"} class="layui-menu-item-checked"{/if}>
                    <a href="{:url('user/password')}" class="layui-menu-body-title">修改密码</a>
                </li>
                <li>
                    <a href="{:url('user/logout')}" class="layui-menu-body-title">退出登录</a>
                </li>
            </ul>
        </li>
    </ul>
</div>